/**********************************************
 * 	Dictionary.java							  *
 *  Course: CS3343							  *
 *  Version: 2.0     Release 1				  *
 *  Last Modified : 22 MAR 2013			      *
 **********************************************/
package checker;
import file.FileIO;

public class Dictionary {
    private FileIO readFile;
	public Dictionary(){
		readFile = new FileIO();
	}
	
	public boolean checkSpelling(String word){
		String[] wordList = readFile.getWordCategory(word,"dictionary");
		for(int i = 0; i<wordList.length; i++){
			if(word.equalsIgnoreCase(wordList[i])){
				return true;
			}
		}
		
		return false;
	}

}
